package com.bsdsma.visonManagementSystemapp.exceptionhandler;

import lombok.Getter;
import lombok.Setter;

public class GlobalRuntimeException extends RuntimeException {

    @Getter
    @Setter
    private String code;

    public GlobalRuntimeException(String code, String message) {
        super(message);
        this.code = code;
    }

    public GlobalRuntimeException(String code) {
        this.code = code;
    }
}
